<template>
  <div class="receipt-wrap">
    <div class="header">
      <div class="create-time">
        2023/7/12 13:54
      </div>
      <div class="a-little-title">
        中国数据宝-大数据交易平台
      </div>
      <div class="big-title">
        数据宝公民网络身份验证结果回执
      </div>
    </div>
    <dl>
    <dd v-for="(item) in list" :key="item.name">
      <ul>
        <li v-for="ele in [{label: '序号', key: 'index'}, {label: '姓名', key: 'name'}, {label: '身份证号', key: 'idCard'}, {label: '认证数据发送时间', key: 'date'}, {label: '回执接收时间', key: 'time'}, {label: '回执结果', key: 'res'},]" :key="ele.key">
          <div class="label">
            {{ ele.label }}
          </div>
          <div class="content">
            {{ ele.key !== 'index' ? item[ele.key] : 1 }}
          </div>
        </li>
      </ul>
    </dd>
   </dl>
   </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    list: {
      type: Array,
      default: []
    }
  },
  data () {
    return {
      
    }
  },
  methods: {
    download() {}
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.receipt-wrap {

}
.header {
  
}
.create-time {
  text-align: left;
}
.a-little-title {

}
.big-title {
  font-size: 30px;
  padding: 10px 0;
}
dl {
  margin: 0;
  padding: 0;
  border: 1px solid black;
}
dd {
  margin: 0;
  padding: 0;
}
ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
li {
    border: 1px solid black;
    margin: 0;
    padding: 0;
    flex: 1;
  }

.label {
  border-bottom: 2px solid black;
}
.content {
  padding: 6px;
}
</style>
